﻿@using Supermodel.MVC.Extensions

@model List<Domain.User>

@{
    ViewBag.Title = "List";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h1>Users</h1>
<div>
    <table>
        <tr>
            <th>Name</th>
        </tr>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.ActionLink(item.Label, "Edit", "Users", new {id = item.Id}, null)
                </td>
            </tr>
        }
    </table>
    <p> @Html.ActionLink("Add New", "Edit", "Users", new { id = 0 }, null) </p>
</div>        
